

#ifndef _SHELL_RESSTARTMINING_MESSAGE_H_
#define _SHELL_RESSTARTMINING_MESSAGE_H_

#include "Message.h"
#include "Beans.h"
using namespace std;

class ResStartMiningMessage : public Message
{
	public:
	ResStartMiningMessage();
	~ResStartMiningMessage();
	void reset();
	ResStartMiningMessage* clone();
	static const int _ID;
	//矿区id
	int32 miningId;
	//矿点编号
	int32 kuangdianNum;
	//挖矿类型（1.占领无人矿点 2.抢夺别人矿点 3.停止挖矿）
	int8 type;
	
	bool read_from(ByteBuf& buf);
    bool write_to(ByteBuf& buf);
    int getId();
};

#endif
